.class Lcom/nemustech/tiffany/world/TFPanel$Morpher;
.super Ljava/lang/Object;
.source "TFPanel.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/nemustech/tiffany/world/TFPanel;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = "Morpher"
.end annotation


# instance fields
.field private mHeightDiff:F

.field private mNewHeight:F

.field private mNewWidth:F

.field private mWidthDiff:F

.field final synthetic this$0:Lcom/nemustech/tiffany/world/TFPanel;


# direct methods
.method constructor <init>(Lcom/nemustech/tiffany/world/TFPanel;)V
    .locals 0
    .parameter

    .prologue
    .line 94
    iput-object p1, p0, Lcom/nemustech/tiffany/world/TFPanel$Morpher;->this$0:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 6

    .prologue
    const/4 v5, 0x0

    const/4 v4, 0x1

    .line 108
    iget-object v0, p0, Lcom/nemustech/tiffany/world/TFPanel$Morpher;->this$0:Lcom/nemustech/tiffany/world/TFPanel;

    iget v1, p0, Lcom/nemustech/tiffany/world/TFPanel$Morpher;->mNewWidth:F

    iget v2, p0, Lcom/nemustech/tiffany/world/TFPanel$Morpher;->mNewHeight:F

    invoke-virtual {v0, v1, v2}, Lcom/nemustech/tiffany/world/TFPanel;->setSize(FF)V

    .line 109
    iget-object v0, p0, Lcom/nemustech/tiffany/world/TFPanel$Morpher;->this$0:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-static {v0}, Lcom/nemustech/tiffany/world/TFPanel;->access$000(Lcom/nemustech/tiffany/world/TFPanel;)F

    move-result v0

    cmpl-float v0, v0, v5

    if-eqz v0, :cond_0

    .line 110
    iget-object v0, p0, Lcom/nemustech/tiffany/world/TFPanel$Morpher;->this$0:Lcom/nemustech/tiffany/world/TFPanel;

    const/4 v1, 0x0

    iget v2, p0, Lcom/nemustech/tiffany/world/TFPanel$Morpher;->mWidthDiff:F

    neg-float v2, v2

    iget-object v3, p0, Lcom/nemustech/tiffany/world/TFPanel$Morpher;->this$0:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-static {v3}, Lcom/nemustech/tiffany/world/TFPanel;->access$000(Lcom/nemustech/tiffany/world/TFPanel;)F

    move-result v3

    mul-float/2addr v2, v3

    invoke-virtual {v0, v1, v2, v4}, Lcom/nemustech/tiffany/world/TFPanel;->locate(IFZ)V

    .line 111
    :cond_0
    iget-object v0, p0, Lcom/nemustech/tiffany/world/TFPanel$Morpher;->this$0:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-static {v0}, Lcom/nemustech/tiffany/world/TFPanel;->access$100(Lcom/nemustech/tiffany/world/TFPanel;)F

    move-result v0

    cmpl-float v0, v0, v5

    if-eqz v0, :cond_1

    .line 112
    iget-object v0, p0, Lcom/nemustech/tiffany/world/TFPanel$Morpher;->this$0:Lcom/nemustech/tiffany/world/TFPanel;

    iget v1, p0, Lcom/nemustech/tiffany/world/TFPanel$Morpher;->mHeightDiff:F

    neg-float v1, v1

    iget-object v2, p0, Lcom/nemustech/tiffany/world/TFPanel$Morpher;->this$0:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-static {v2}, Lcom/nemustech/tiffany/world/TFPanel;->access$100(Lcom/nemustech/tiffany/world/TFPanel;)F

    move-result v2

    mul-float/2addr v1, v2

    invoke-virtual {v0, v4, v1, v4}, Lcom/nemustech/tiffany/world/TFPanel;->locate(IFZ)V

    .line 113
    :cond_1
    iget-object v0, p0, Lcom/nemustech/tiffany/world/TFPanel$Morpher;->this$0:Lcom/nemustech/tiffany/world/TFPanel;

    invoke-static {v0}, Lcom/nemustech/tiffany/world/TFPanel;->access$200(Lcom/nemustech/tiffany/world/TFPanel;)Lcom/nemustech/tiffany/world/TFPanel$OnPanelMorphListener;

    move-result-object v0

    iget v1, p0, Lcom/nemustech/tiffany/world/TFPanel$Morpher;->mWidthDiff:F

    iget v2, p0, Lcom/nemustech/tiffany/world/TFPanel$Morpher;->mHeightDiff:F

    invoke-interface {v0, v1, v2}, Lcom/nemustech/tiffany/world/TFPanel$OnPanelMorphListener;->onPanelMorph(FF)V

    .line 114
    return-void
.end method

.method public setParams(FFFF)V
    .locals 0
    .parameter "newWidth"
    .parameter "newHeight"
    .parameter "widthDiff"
    .parameter "heightDiff"

    .prologue
    .line 101
    iput p1, p0, Lcom/nemustech/tiffany/world/TFPanel$Morpher;->mNewWidth:F

    .line 102
    iput p2, p0, Lcom/nemustech/tiffany/world/TFPanel$Morpher;->mNewHeight:F

    .line 103
    iput p3, p0, Lcom/nemustech/tiffany/world/TFPanel$Morpher;->mWidthDiff:F

    .line 104
    iput p4, p0, Lcom/nemustech/tiffany/world/TFPanel$Morpher;->mHeightDiff:F

    .line 105
    return-void
.end method
